package com.kingint.mbg.sys.mapper;

import com.kingint.mbg.dto.BackQueryParam;
import com.kingint.mbg.dto.MemberReturn;
import com.kingint.mbg.sys.entity.UmsMember;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 会员表 Mapper 接口
 * </p>
 *
 * @author wxh
 * @since 2020-12-10
 */
public interface UmsMemberMapper extends BaseMapper<UmsMember> {

    /**
     * 查询部门下对应状态的人员
     * @param departmentId
     * @param workStatus
     * @return
     */
    List<MemberReturn> getDepartmentUser(@Param("departmentId") Integer departmentId, @Param("workStatus") Integer workStatus);

    /**
     * 根据id查询用户信息
     * @param id
     * @return
     */
    MemberReturn getMemberInfoById(@Param("id") Long id);

    /**
     * 查询对应部门对应职位的人员
     * @param departmentId
     * @param name
     * @return
     */
    List<MemberReturn> getDepartmentManager(@Param("departmentId") Integer departmentId,@Param("name") String name);

    /**
     * 查询对应的用户信息
     * @param memberListId
     * @return
     */
    List<MemberReturn> getAllMemberListById(@Param("list") List<Long> memberListId);

    /**
     * 查询服务单处理人员
     * @param backQueryParam
     * @return
     */
    MemberReturn getServiceReceiveInfo(@Param("query") BackQueryParam backQueryParam);

}
